﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTKHDatHangDTO
    {
        #region "Khai báo các biến"
        private string _maMH;
        private string _maKHDH;
        private int _soluong;
        private string _dvt;
        private double _dongia;
        private float _chietkhau;
        private double _thanhtien;
        private bool _dagiao;
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public string MaKHDH
        {
            get { return _maKHDH; }
            set { _maKHDH = value; }
        }
        [DataMember]
        public int Soluong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        [DataMember]
        public string Dvt
        {
            get { return _dvt; }
            set { _dvt = value; }
        }
        [DataMember]
        public double Dongia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        [DataMember]
        public float Chietkhau
        {
            get { return _chietkhau; }
            set { _chietkhau = value; }
        }
        [DataMember]
        public double Thanhtien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        }
        [DataMember]
        public bool Dagiao
        {
            get { return _dagiao; }
            set { _dagiao = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public CTKHDatHangDTO() { }
        public CTKHDatHangDTO(string mamh, string makhdh, int soluong, string dvt, double dongia, float chietkhau, double thanhtien, bool dagiao)
        {
            MaMH = mamh;
            MaKHDH = makhdh;
            Soluong = soluong;
            Dvt = dvt;
            Dongia = dongia;
            Chietkhau = chietkhau;
            Thanhtien = thanhtien;
            Dagiao = dagiao;
        }
        public CTKHDatHangDTO(CTKHDatHangDTO CTKHDatHang)
        {
            this.MaMH = CTKHDatHang.MaMH;
            this.MaKHDH = CTKHDatHang.MaKHDH;
            this.Soluong = CTKHDatHang.Soluong;
            this.Dvt = CTKHDatHang.Dvt;
            this.Dongia = CTKHDatHang.Dongia;
            this.Chietkhau = CTKHDatHang.Chietkhau;
            this.Thanhtien = CTKHDatHang.Thanhtien;
            this.Dagiao = CTKHDatHang.Dagiao;
        }
        #endregion
    }
}